class Article < ActiveRecord::Base
  has_many :comments, :dependent => true, :order => 'created_at'
  belongs_to :user
  
  acts_as_taggable
  attr_writer :tag_list
  
  def after_save
    self.tag_with @tag_list
  end
  
  validates_presence_of :title, :body
end
